<template>
  <div class="">
    我是1组件（接收方 ）
    <p>{{msg}}</p>
  </div>
</template>
<script >
import Bus from "../../utils/EventBus";
export default {
  data() {
    return {
      msg:''
    };
  },
  props: [],
  components: {},
  created() {
    Bus.$on("sendMsg", (msg) => {
      this.msg=msg
    });
  },
  mounted() {},
  methods: {},
};
</script>
<style lang='less' scoped>
</style>